#include <stdio.h>
#include <peekpoke.h>
#include <conio.h>
#include <stdbool.h>

#include "EXEC.h"
#include "Dispatcher.h"
#include "Loader.h"

#pragma code-name("EXECLOCODE");
#pragma rodata-name("EXECLOCODE");

bool __fastcall__ executeNextCommand(unsigned char driveIndex)
{
	unsigned char temp = driveIndex;
	if(processCommand(buffer3) != 0)
	{
		scriptposition = 0xFFFF;
		POKE(53280,0);
	}

	//loadAndExecuteCommandlet(temp, "CMD.EXEC");

	return eapi_load("CMD.EXEC") == 1;
}